﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SpreadSheetFramework.Util.Validate
{
    public class ObjValidateDouble:ObjValidateBase
    {
        public ObjValidateDouble(string errStr) : base(errStr)
        {
        }

        public override bool IsValidate(object value)
        {
            double cv;
            if (value == null || !double.TryParse(value.ToString(), out cv)||double.IsInfinity(cv)||double.IsNaN(cv))
                return false;
            return true;
        } 
    }
}